package com.nbsaas.boot.project.data.entity;

import com.nbsaas.boot.code.annotation.FormAnnotation;
import com.nbsaas.boot.code.annotation.FormField;
import com.nbsaas.boot.code.annotation.SearchItem;
import com.nbsaas.boot.jpa.data.entity.AbstractEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Data;


@Data
@FormAnnotation(title = "任务标签", model = "任务标签")
@Entity
@Table(name = "nb_project_task_tag")
public class ProjectTaskTag extends AbstractEntity {

    @SearchItem(label = "标签名称", name = "name")
    @FormField(title = "标签名称", sortNum = "1", grid = true, required = true)
    @Column(length = 20)
    private String name;


    @FormField(title = "标签数量", sortNum = "1", grid = true)
    private Long amount;

}
